const DEV_AGENT = '/mall'
const API = {
	//跨域配置代理名称
	DEV_AGENT: DEV_AGENT,
	//接口根目录
	BASE_URL: 'http://116.63.80.218:8082/wx/',
	// 首页详情数据接口
	GET_HOME_INFO: DEV_AGENT + '/home/index',
	// 介绍信息接口
	GET_HOME_ABOUT: DEV_AGENT + '/home/about',
	// 分类目录全部分类接口
	GET_HOME_ABOUT: DEV_AGENT + '/catalog/current',
	// 账号登录接口
	POST_AUTH_LOGIN: DEV_AGENT + '/auth/login',
	// 账号退出
	POST_TOKEN: DEV_AGENT + '/auth/logout',
	// 账号注册
	POST_AUTH_REGISTER: DEV_AGENT + '/auth/register',
	//账号密码重置
	POST_AUTH_RESERT: DEV_AGENT + '/auth/reset',
	//分类目录全部分类数据接口
	GET_CATALOG_INDEX: DEV_AGENT + '/catalog/index',
	//分类目录当前分类数据接口
	GET_CATALOG_CURRENT: DEV_AGENT + '/catalog/current',
	//用户信息重置
	POST_AUTH_UPDATEINFO: DEV_AGENT + '/auth/updateInfo',
	//获取购物车的数据
	GET_CART_INDEX: DEV_AGENT + '/cart/index',
	// 添加商品到购物车
	POST_CART_ADD: DEV_AGENT + '/cart/add',
	// 点击立即购买商品缓存购买信息
	POST_CART_FASTADD: DEV_AGENT + '/cart/fastadd',
	// 更新购物车的商品
	POST_CART_UPDATE: DEV_AGENT + '/cart/update',
	// 删除购物车的商品
	POST_CART_DELETE: DEV_AGENT + '/cart/delete',
	// 选择或取消选择商品
	POST_CART_CHECKED: DEV_AGENT + '/cart/checked',
	// 获取购物车商品件数
	POST_CART_GOODSCOUNT: DEV_AGENT + '/cart/goodscount',
	// 下单前信息确认
	GET_CART_CHECKOUT: DEV_AGENT + '/cart/checkout',
	//评论列表
	GET_COMMENT_LIST: DEV_AGENT + '/comment/list',
	//评论总数
	GET_COMMENT_COUNT: DEV_AGENT + '/comment/count',
	//删除评论
	POST_COMMENT_DELETE: DEV_AGENT + '/comment/delete',
	//修改评论
	POST_COMMENT_UPDATE: DEV_AGENT + '/comment/update',
	 //商品搜索页面
	 GET_GOODS_LIST:DEV_AGENT + '/goods/list',
	//获取默认、热门、历史关键字
	GET_SEARCH_INDEX: DEV_AGENT + '/search/index',
	//清除搜索历史
	POST_SEARCH_CLEARHISTORY: DEV_AGENT + '/search/clearhistory',
	//收货地址列表
	GET_ADDRESS_LIST: DEV_AGENT + '/address/list',
	//收货地址详情
	GET_ADDRESS_DETAIL: DEV_AGENT + '/address/detail',
	//保存收货地址
	POST_ADDRESS_SAVE: DEV_AGENT + '/address/save',
	//删除收货地址
	POST_ADDRESS_DELETE: DEV_AGENT + '/address/delete',
	// 提交订单
	POST_ORDER_SUBMIT: DEV_AGENT + '/order/submit',
	//订单支付
	POST_ORDER_PAY: DEV_AGENT + '/order/pay',
	//订单列表
	GET_ORDER_LIST: DEV_AGENT + '/order/list',
	//订单详情
	GET_ORDER_DETAIL: DEV_AGENT + '/order/detail',
	//取消订单
	POST_ORDER_CANCEL: DEV_AGENT + '/order/cancel',
	//退款取消订单
	POST_ORDER_REFUND: DEV_AGENT + '/order/refund',
	//删除订单
	POST_ORDER_DELETE: DEV_AGENT + '/order/delete',
	//商品详情页
	GET_GOODS_DETAIl:DEV_AGENT + '/goods/detail',
	//足迹列表
	GET_FOOTPRINT_list:DEV_AGENT + '/footprint/list',
	//删除足迹
	POST_FOOTPRINT_DELETE:DEV_AGENT + '/footprint/delete',
	
}
module.exports = API
